/**
 * 
 */
package three_star_craft.uap.event;

import java.util.List;

import org.grlea.log.SimpleLogger;

import three_star_craft.EventData;
import three_star_craft.uap.UapSigNo;
import ProtocolsCommon.Common.PlayableItem;
import UserApplicationPart.UAP;

/**
 * @author w.antosiewic
 *
 */
public class EventUapConnectionCfm extends EventData
{
    private static final SimpleLogger logger = new SimpleLogger(EventUapConnectionCfm.class);
    
    private UAP.UapConnectionConfirm _uapConnCfm;
    
	public EventUapConnectionCfm(UAP.UapConnectionConfirm uapConnCfm)
	{
		super(UapSigNo.UAP_CONNECTION_CFM);
		_uapConnCfm = uapConnCfm;
		if(!_uapConnCfm.isInitialized())
		{
		    logger.error("Message UapConnectionCfm is missing some required fields:"+_uapConnCfm.getInitializationErrorString());
		    return;
		}
	}
	
	public List<PlayableItem> getPlayableItems()
	{
	    return _uapConnCfm.getItemsList();
	}
}
